<?php
	class Default_Model_Product extends Zend_Db_Table_Abstract{
		protected $_name = 'products';
		protected $_primary = 'id';
		
		public function getProNew(){
			$select = $this->select()
						->where("status = 1 and isDelete = 0")
						->order("id desc");
			$result = $this->fetchAll($select);
			return $result->toArray();
			
		}
		public function getInfo($id){
			$select = $this->select()
						->where("status = 1 and isDelete = 0");
			$result = $this->fetchRow($select);
			return $result->toArray();
		}
	}
?>